Fix handling of arrays on json serialization