optimized isInfinite for NaN vectors reverted hashcode back to its previous behavior to avoid breaking consistency with equals