symbols: improve FindKeyForSymbol()