Track the dirty state of the alias manager.

Only save when the manager is dirty.
Merge pull request #107 from csmith/master

Track the dirty state of the alias manager.