Fixed an exception raised in the master related to task statuses.

Review: https://reviews.apache.org/r/16038
Fixed group to use 32 bit signed integers for sequence numbers.

Review: https://reviews.apache.org/r/16045