minor javadoc fixes
add new tests to cover arrays of different types being compared to each other.
Notably, this is exposing some issues, so this is a checkpoint before fixing those
issues.
factor out array testing into a separate method.