fixes #6375 - fix needed for Rails 3.2.8 only that ensures reference_id on parameter.rb matches the nested object id

thank you, I'm wondering if we should check and apply the patch only `if Rails.version == '3.2.8'`