[BUGFIX] Comment early return because $overlayPaths is undefined and always NULL
[BUGFIX] Swap array unique and reverse to have the path in right order
[BUGFIX] Use the right var for layoutRootPath
Merge pull request #1 from Mabahe/master

Bugfixes for broken view
Merge pull request #4 from NamelessCoder/master

Ajour from latest PR from Mabahe