Make schema into an abstract type (hide its dict-ness).
XSD algorithm sketch & phase 1 (flattening) implementation.
Update TODO.
Update TODO (test file).