Fix Mongo queries with {$regex: /foo/}

The bug manifested as incorrect cursor de-duping, making
queries on different regular expressions "de-dup" into one,
which, combined with hot code reload caused crazy seeming
things such as needing to save twice to see a code change
executed.
Correct mongo selector rewrite for {$regex: /foo/, $options: '...'}
Update History.md