Add writer validation option. Other minor changes to allow use from other XML-like writers (e.g., RDFXML::Writer).