Corrected a bug: PiMM2SDF was visting twice loop prototypes rather than once loop prtototypes and once init prototypes.