GModels access operator now returns reference instead of pointer.

The GModels model access operator[] now returns a reference instead of a pointer. This needed a couple of minor adjustments of the code.