Tool Labs: More bugfixes to gridengine class

- template(template(x)) isn't as useful as might seem
  at first glance (don't expand twice)

Change-Id: Ide24a8bd21e9d5ef0369b55d7db97bdc5d21bb1b