Fix objectQueryEngine to use get/set interfaces when they exist

Also fixes objectQueryEngine to properly sort Dates.