fix dedupe for deps of deps

Make sure that all hashes for all rows are available before comparing
dependencies. Otherwise dependencies of dependencies might come later in
the stream and are not yet hashed.