Fixed arraylist constructor