CLN: cleanup arguments in generate_code.py
PERF: Limit memmove to >= 256 bytes, relax contiguity requirements

 (only the stride in the dimension of the copy matters)