SPARK-1628: Add missing hashCode methods in Partitioner subclasses