gras: created GRAS_SWIG_TOOL to help registering new types