Document.getProperties() for POJO values

It’s not a bug; we never claimed to support encoding/decoding of custom classes. Document properties are JSON objects like Arrays and Maps. Any conversion to custom classes should be done by your own code.