C#: Fixed minor bug in Unit class.