Fixed nested caches bugs in `cache`, fixes #24
v0.12.1