Deal with namedtuple getting encoded as a list in task / JSON boundary.