Fixed regression tests of JSON serialization of collections