Move STArray functions into Data.Array.ST

Also resolves https://github.com/purescript/purescript/issues/727