Load referenced instances. Can't test until registry is initialized.
a few FIXMEs
add lazy_* executable for schemas under data/
improve handling of ENDSEC & EOF
instanceID is now unsigned, update comparisons and return values
a few minor changes