Spec and fix for #147.

t++ was missing from the :* section of the if statement so the dimension
counter was not functioning properly.