xmlschema-to-guts: handle attribute groups in extension types
improved unicode handling
added a test