correctly handle incorrect type labeled <array>'s
fix spacing in ResArrayValue