opscode/chef — pull request #529 by danielsdeleo (2012-12-11 23:12:43+00:00)
Title: Chef 3680 - fix StaleAttribute errors when converting node to JSON

Error was caused because dups of Attribute collections (AttrArray and VividMash) were bumping the serial number of the root Chef::Node::Attribute, causing subsequent reads to fail. Since usually duping an object indicates that you don't intend for changes to affect the dup'ed object, I fixe the issue by making #dup convert collections to more primitive versions (with no connection to the root Chef::Node::Attribute).