Dependency insertion fix (container agnostic)

This should be a bit better I think..
I know what this is. http://www.boost.org/doc/libs/1_56_0/doc/html/boost/algorithm/join.html