Issue #3: Moved the creation of the iteration space loops for the C++ target to the kernel printing method of the code generator