MAJOR WIP: array serialization, todos