Add output type accessor

It's not needed for normal Groonga C API users. Language bindings
developers may want to use it.