minor cleanups and added debug hacks to Array<> template