[BUGFIX] AbstractProvider->getTemplatePaths should only return array

The return value of ``AbstractProvider::getTemplatePaths(...)`` must always be an array.