DATAMONGO-407 - Collection with generics losing element type after $set update.

Added additional test cases.