Pass parameters as const referernces for smart pointers in flatten* functions.
Pass parameters as const referernces for smart pointers in flatten* functions.

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