Dependency analysis fixes.

- Add a filter parameter for eliminating missing dependency errors that
  shouldn't be reported.
- Only return missing dependency errors if they were reported to the user.
- Throw exception when missing deps are detected.
- Eliminate redundant retrievals of parameters.

Auditors:  benjy