Slice flattener turned into a useful function
Flatterners moved to new array_helpers.py; test added for slice flattener