Fix isunit() not able to check if dimension has no unit.