Improved xml and json root configuration for more consistency
Updated array serializer and serializable for full XML support
Fixed test