Create "dependencies" pointer collector and test it

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>