Add failing case for MySQL query gen with bool. (Issue #607)
MySQL: Outgoing booleans are turned into ints

In the MySQL dialect, values used to generate insert, bulk insert, and update queries are now checked for boolean-ness and will be turned into an int.

There was already duplicated logic applied to outgoing values to check if the value was a Date or not. I factored out value processing to a single function and added a check for typeof boolean.

The new function also escapes the return value since that was also being done everywhere.

Fixes #607
Minor low-hanging changes to improve jshint performance
Failing tests for MySQL where clause value processing
Process values going into WHERE clauses in MySQL
Merge pull request #608 from terraflubb/mysql_bools_save_as_tinyints

Properly process booleans in MySQL dialect to fix #607