[Bug 1216112] perl-XML-LibXML: "expand_entities" option was not preserved under some circumstances