Fix DirectByteBufferAlignment

and also an issue which was causing problems while accessing
ByteBufferArray when the buffer was created as duplicate/slice of a
duplicate/slice. A unit test was added for the same.

Bug: 26020981
Change-Id: Ice6c1d484b6fd68221f079949faed7d982230c1d
4 files changed