Sets a limit on stage names in the entity manager. Added a few tests.
Finish stage name limit.