Added workaround for initialise_chunk and generate_chunk kernels in the code generator