Removed compact in compileSmartWhere, fixing a spec for sqlite