Reference was never removed in search tree on deletion, so the put method returns 0 (line 408 in storage.c) when attempting to put the same reference back into the dictionary.
Coverage remained the same when pulling 333d765e46a658b49cd634da44145932f09a81c7 on thorvaldurhelga:reference_delete_fix into e9a14e17edb1a70da2e39e686dc39326867a90d5 on mezis:master.
Reference was never removed in search tree on deletion, so the put method returns 0 (line 408 in storage.c) when attempting to put the same reference back into the dictionary.