LSIF Typed: handle symbols with duplicate definitions
Created by: olafurpg
Fixes https://github.com/sourcegraph/lsif-typescript/issues/42
Previously, we emitted duplicate result sets for the same symbol.
Test plan
See included snapshot tests, which assert that we don't regress this functionality in the future.