Fix deserialisation issue with collections