Add support for byte[] properties

Changes to correctly (de)serialize and store byte[] fields.