Add MonadFreshNames instance for IO in Dev.
Add setArrayDims convenience function.
Fix reshape typing - it was weird before.