Use hash lookup instead of case statements
Merge pull request #46 from protobuf-ruby/ts-faster-wire-selection

Use hash lookup instead of case statements