DATAMONGO-721 - Updates Retain type information for collections properties.

Added test case to demonstrate that the fix for DATACMNS-345 will propagate into Spring Data MongoDB.

Original pull request: #52.