Add a test-case that verifies that function refs are not pruned when the definition changes. Should fail right now.
Create a new table that maps function refs to declarations, that is otherwise similar to function_refs, and turn function_refs into a view for compat. This prevents refs from being pruned when the definition changes.
Remove dxr.utils.next_global_id, since it was causing key conflicts on incremental update.