Mysql bool fix

Booleans are broken in AR when using mysql2 & tinyint. This  backports [fix](https://github.com/rails/rails/pull/12425) of the [issue described here](https://github.com/rails/rails/issues/11119)

It is fixed in `4-1-stable`.

/cc @square/railsfork-contributors