Check type in <=> comparisons
Ruby 2.2.0