Determine types for symbols.