moved array processing helper functions to top level.
Added maybeToProperList and properListToMaybe.
Haven't finished using them.
More playing with Maybes. Can probably be a lot better now I know
how to use >>=.