Rails 5 / Arel 5 compatibility patch

The Arel API changed in the following commit 2 weeks ago and broke
Ransack compatibility with Arel and Rails master.

This is a quick patch. We should probably set up separate context files
for 4.2 and 5.0 like with 3.0-4.1.