WIP-performance.
Extract and refactor concatDeps.

Fixes #2.

- Ensures dep stream is only generated a single time
- Builds cache incrementally during dependency resolution to speed
  up subsequent calls to deps()