pystencils: check ghost_layers and iteration_slice parameters for create_kernel

inserting wrong parameters here leads to segfaults in the generated kernels

all information is known to detect and catch these cases before