Conditionally use references for implicit includes only in Rails 4.