Use Arel master when using ActiveRecord master

(Transplant from with_model/with_model@cab41ed225a5d1f1fb65e51edc5673f2583285bb)