Add object accessor macros.