change return value of `duplicable?` with Ruby 2.4+ ยท rails/rails@2cb8558

`NilClass`, `FalseClass`, `TrueClass`, `Symbol` and `Numeric` can dup with Ruby 2.4+. Ref: https://bugs.ruby-lang.org/issues/12979