[swift-generator] generate hashCode and equals

Addresses issue #188