adds trace.on option for opt-in for tracing

refactors array.filter, array.every and array.some to for-loops
adds missing QueryComparisions to global export
updated each test group to use new instance of QueryPromise