Improvements to Controller class, and new Array helper.