Dup options hash to prevent modifications

`options[:default]` and `options[:raise]` can be mistakenly added to the `options` hash. This can be a problem if you're reusing the same object.
Merge pull request #15068 from josepjaume/patch-1

Dup options hash to prevent modifications