Don't get tripped by YAML::XS's readonly values.

Fixes #1070
Merge branch 'yaml-xs-readonly' into devel

Fixes #1070