bugfix for $ne on empty list

Using $ne on a list tries to compare the list items, and if it fails, it will compare the list itself (as a whole object), this is the mongo behavior that is fixed in this commit.

Example: { list: [1,2] } should match the query: { list: { $ne: [] } }