Fixed Group::hashGlobals() bug.

It wasn't including the namePlug(), and it should have been.
Fixed SubTree forward declarations.

Fixes #269.
Merge pull request #271 from johnhaddon/forwardDeclarationFixes

Forward declaration fixes