Added tests for the ArraySerializationVisitor
fixed visitArray custom handling for json format