Deprecate raw() and introduce dedicated methods for byteArray and byteBuffer. Original Pull Request: #459