Apply patch of http://pyyaml.org/ticket/128 to raise error on duplicate keys