Add some type safety to GlobalObject/GlobalValue - they're always PointerTypes so...