Fix function def crash in codeblock

Check output port warnings only for binary expressions as function
definitions do not have output ports