Parsers: generalized the macro so it automatically wraps the classes derived from T.