OTHER: Refactor serializing collection operands.
OTHER: Remove unnecessary _valid() check when serializing lists/dicts.
OTHER: list/dict size is accessed in constant time.
BUG(2480): Replace int32 with int64 on the wire and in xmmstypes.