[opa] added macro magic to opa/converter.h to generate templates following our conventions