Fix critical when using binary expression in a generics context

Fixes bug 735117