Add loadCompiledTypeAndDependencies() to SchemaParser so that compiled constants can be cast to static types.