Fix package orgnization. toArray test
Use direct byte buffer interface to copy from RawByteArray to byte[]