make from_buffer an instance method for Type

It was previously only a class method, but that avoids reusing
the same sample over and over again to reduce GC pressure.
implement a "direct" lower-overhead version of Type#from_buffer

It is there for the benefit of libraries (namely, pocolog) that want
to unmarshal a lot of samples.