Modify ArrayList resizing

Changed ArrayList default resizing to powers of 2 and only resize when
inserting into a full array.