refactored xsd2scm to collect all types first then generate Scheme file