Generates hash code including ByteArray fields.
Uses contentHashCode() for ByteArrays to ensure consistent hashing based on array contents rather than reference.