Fix isunit() not able to check if dimension is unitless, i.e. unit is empty.