Code generator: simplified our code a bit.
Code generator: simplified our code a bit.

hsorby/libcellml,nickerso/libcellml,nickerso/libcellml,cellml/libcellml,nickerso/libcellml,hsorby/libcellml,cellml/libcellml,hsorby/libcellml,cellml/libcellml,nickerso/libcellml,cellml/libcellml,hsorby/libcellml