added @rakhimov 's original deterministic comparator as a comparison opt...

...ion to assist finding nondeterministic cases

I'm using this primarily as a tool to see where to look for nondeterminism, but once we find it (it looks like ResourceIDs are the culprit currently) and if we can make it deterministic (we may not be able to), then it will be a useful tool for regression testing as well.

this PR need not be pulled in if we disagree to its usefulness, but I thought I'd get a discussion going