Reorg cell unpacking code slightly to avoid recursion so it can be inlined (-Winline).