Minor cleanups.
Minor cleanups.

In particular, make some variables 'const'. Also guard sequences of
'if (dim=...)' against unforeseen cases.

spco/dealii,shakirbsm/dealii,jperryhouts/dealii,shakirbsm/dealii,shakirbsm/dealii,JaeryunYim/dealii,angelrca/dealii,jperryhouts/dealii,pesser/dealii,jperryhouts/dealii,EGP-CIG-REU/dealii,sairajat/dealii,danshapero/dealii,angelrca/dealii,danshapero/dealii,danshapero/dealii,angelrca/dealii,JaeryunYim/dealii,pesser/dealii,shakirbsm/dealii,jperryhouts/dealii,sairajat/dealii,kalj/dealii,pesser/dealii,angelrca/dealii,naliboff/dealii,EGP-CIG-REU/dealii,EGP-CIG-REU/dealii,naliboff/dealii,naliboff/dealii,EGP-CIG-REU/dealii,angelrca/dealii,kalj/dealii,danshapero/dealii,pesser/dealii,EGP-CIG-REU/dealii,kalj/dealii,sairajat/dealii,JaeryunYim/dealii,JaeryunYim/dealii,kalj/dealii,pesser/dealii,sairajat/dealii,angelrca/dealii,shakirbsm/dealii,naliboff/dealii,sairajat/dealii,kalj/dealii,naliboff/dealii,spco/dealii,spco/dealii,spco/dealii,sairajat/dealii,danshapero/dealii,jperryhouts/dealii,pesser/dealii,jperryhouts/dealii,shakirbsm/dealii,pesser/dealii,kalj/dealii,naliboff/dealii,shakirbsm/dealii,EGP-CIG-REU/dealii,JaeryunYim/dealii,spco/dealii,kalj/dealii,naliboff/dealii,spco/dealii,sairajat/dealii,spco/dealii,danshapero/dealii,angelrca/dealii,JaeryunYim/dealii,EGP-CIG-REU/dealii,jperryhouts/dealii,JaeryunYim/dealii,danshapero/dealii