Fix SQL injection when querying against ranges and bitstrings

Fix CVE-2014-3483 and protect against CVE-2014-3482.
Preparing for 4.1.3 release
Make sure range strings are quoted after we quote the range.
Preparing for 4.1.4 release
Merge commit '7c4bfe1c954ef90acf4f790e46fcbbd07d85af3e' into code42

Conflicts:
	activerecord/CHANGELOG.md