Speed up copying of abstract arrays and iterables