Added macros for generating the most common heap object accessors.