fix deserialization of collection types