Motivation:
We are skirting to the edge of correctness on the pointer APIs, so we
should keep an eye on them and clean things up from time to time.
Modifications:
- Don't type cast a ByteBuffer pointer in tests.
- Use some buffer pointer APIs
Result:
Slightly better pointer usage.