continued ByteArray impl and dictionary refactoring.