[WIP] - Implemented portable array serialization. Added tests.