Symbol database: handle when forward declaration doesn't match declaration. Ticket: #4531