Fix regression in 3.0.0 where legal code following an operator<< definition might give a syntax error.

SF Bug #1365.