Ticket #5478: Only functions and equal operators might return a temporary

Hi,

This patch fixes the ticket by ensuring everything that's not a function or equal operator is skipped when checking if a temporary is returned. Without this, the code crashes dereferencing a 0 function->retDef. Thanks to consider pulling.

Cheers,
  Simon