Fixed view caching, updated tests and READMEs, refactored statement sub-compiler logic