Allocate memory correctly for UEG system.
Allocate memory correctly for UEG system.

Previously an array was allocated before its shape was defined in the
UEG (but no other model) system.  Simple fix by reordering the relevant
statements.

hande-qmc/hande,ruthfranklin/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande,hande-qmc/hande