Add shebang to update scripts and fix Xcode references
Rename GTReference `-type` to `-referenceType`

They were incorrectly converted to git object types. This is how rugged does it.
Make GTObject more classcluster-like.