Add array ensurance

Need some functions and methods to check and tweak array inputs to a few functions, particularly in cycles and sift. Should give sensible warnings if something silly is happening and talk to the logger.