more cleanups of obsoelte Array<T> code