Add member variable getter/setter generation for object registration.