[WIP] Added support for an "array" format

This PR adds support for an "array" format, providing the functionality to serialize to and deserialize from arrays.

I still need to add tests and finish updating the handlers, but I wanted to get some feedback first before I finished the PR. Is something you'd be interesting in merging?