Enable YAML serialization of Ruby delegators

This works for SimpleDelegator as well.