Fixed a few ASSERTs and bugs for varCount==0 that needed to be fixed for multigraded ordering.