Fixed Error in TemplateManager (template.php), causing the main module to get initialized with an string instead of array. Continued porting of CellFilterPortlet.