Fixed renderObject macro so that it functions with the IndexAndPayloadComposite object