Prevent race condition on generalTypeSet.

Fix for Issue #8 - Hang in intellisense or shutdown due to HashSet corruption.
Two threads were modifying the HashSet, replaced with a ConcurrentDictionary<_, unit> because there's no ConcurrentSet.