optimized a few array types. minor comment cleanups