Mixed key types for cogroup

See #675.
I plan to do the same for join when the testcases for join are finished.