Group length checks
1.0.6 release to fix a few important issues and prepare for the dev branch.
1.0.6a release to fix an issue in the StateManager.