Rename GTReference `-type` to `-referenceType`

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