Bool and ByteArray types conversion tests.