Moved and fixed array and bitarray from cwt-core project.