equals()/hashCode() & tests for ByteArrays to avoid materializing a
full byte[].