add test to confirm the casting behaviour of a cursor sort argument
change sort to only cast scalars to integer, to allow new '$meta' projection sorting in MongoDB 2.6