Fix objectQueryEngine to use get/set interfaces when they exist

Also fixes objectQueryEngine to properly sort Dates.
Fix objectQueryEngine to only call valueOf on non-null