Update serialization.rb

Patch for Rails 4.2 beta2