Fix an issue where getCollections can return an array of Object instead ...

...of an array of BoxItemCollection if a class is parcelled/unparcelled.