Symbol Database: improved type handling. Ticket: #4952