Implemented script annotation restrictions for object getters.