Adding test from issue #1085.
Adding support for cast values on mongodb elemMatch operator.