move where_values_hash patch to method in Relation class that inherits
from ActiveRecord::Relation, fixes #288.