[BUGFIX] Ensure valid arguments for array_chunk
Merge pull request #638 from bjo3rnf/chunknorris

[BUGFIX] Ensure valid arguments for array_chunk