Add support for Subclasses, Interfaces, Abstract Classes as POJOs

So now we are writing 2 bytes (null value, subclass) for these flags. Can't we use one byte and use the bits as flags?