[WIP] make ASTs cachable

change detection should not depend on angular. Remove these imports.