Add tests and rough implementation of Array serialization support fix #4