Remove STArray implementation

As far as I can tell, nothing uses this right now, so it makes sense to move it out. The rewrite rules can be reimplemented when we have custom rewrites in the optimizer.