Modification due to review
Add commandAutoloadEnabled property in Application
Bug fixes: use foreach to replace array_walk