Add macro for generating ObjectOutput instances