Fix for #337 with refactoring and more tests
More tests for #to_query
Fix 1.8.7 support
Merge pull request #345 from dotpromo/master

QueryMapper parses query strings including nested params