BUG: Fixed C code printing for Piecewise functions.

C code generation for Piecewise functions was not working for functions
with multiple conditionals. This patch fixes the unbalanced ending parentheses.