Port Rails 3.2.12 fix for MySQL weirdness.

Should fix #219

Conflicts:
	CHANGELOG.md
Handle additional edge cases for MySQL workaround
Fix failing spec on 3.0
Add date to CHANGELOG

Conflicts:
	CHANGELOG.md
Remove orphaned debugging line
Bump version