Generator: reworked code generation for the state and variable information.
Generator: reworked code generation for the state and variable information.

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