Implement hashCode(), equals() and toString() on all VariableSpecs