Add support for type retrieval for Constants and Properties