Many bugfixes for caching. Now passed basic open/read/close test that exercises dependence graph construction routine.