Add a test for incomplete closures in the binary cache

Issue #77.
Automatically fall back if the references of a substitute are not substitutable

Fixes #77.
If a substitute closure is incomplete, build dependencies, then retry the substituter

Issue #77.