Fix uncommitted unit display.
Merge pull request #491 from jaycee/name-uncommitted-units-right

Fix uncommitted unit display.

* When a unit is uncommitted, use it's display name.
* Don't use the displayname once the unit exists; it screws up other events
  that aren't applicable to the uncommitted unit.