Fixes an issues with Object.dup on ruby 2.0.0-p0 (fixes #80).