Implement basic array serialization support

Add tests for major type 4