Fix for queries with both to and from params.
Merge branch 'master' of github.com:CrossRef/tobias-random