Fixed #511 - error when trying to map to a ReadOnlyCollection at top-level (i.e. not a property)

This seems to fix the problem. Not sure it's the right way to go about it, though... I'm not familiar with the code base.