update query compiler to support models stored in IDeref wrappers