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

@ares, I updated the comment even though I didn't find the original bug issue on https://github.com/rails/rails