Jonathan's refactoring/cleanup of g_template.c
first step at cleaning up nested-gop bug (still need to work on scaling the objects to properly fit nested gop xy range)
fixed findrtext consistency check error with 2+ level embedded gop scalars (may need further testing for regressions)