Fixing bugs on ArrayAdapter and Bytes conversion, and implementing CollectionAdapter