minor refactoring of ExtractClosure.prepare
unit tests for issue #37
don't consider non-value inbound dependencies as potential parameters #37