Dependency insertion fix (container agnostic)

This should be a bit better I think..
`*dependencies.rbegin()`

read up on reverse iterators.