Handle VarInts in SwapEntities