Fix active_record_ext to support Arel-4.0.1