rewrite inject_concurrency_blockers to work with other item dependencies
shorten existing tests
add test for flatten_dependencies
fixes for flatten_dependencies