Testing AbstractVertex#equals(...) optimization

This change biases AbstractVertex#equals(...) to run faster when the
argument is another AbstractVertex instance but slower when the the
argument something else.