Fix bug in `ZeroUnit` when it is not a dimension

Only for dimensions the unit identifier is optional. This should fix #154