Use ActiveSupport's deep_dup under Rails 4.x+ to clone OpenStructWithHashAccess instances