rewrite fix for instantiating internal/external subset DTDs by properly copying them
merge lxml-3.2 branch into master