Added a TODOed test for referencing loaded resources in queries.
Added support for case insensitive equal operator ieq