[FIX] Prevent "array conversion to string" warning


git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/13.x@52540 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] Prevent error due to not an object at the end of recursion


git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/13.x@52542 b456876b-0849-0410-b77d-98878d47e9d5
[FIX] Allow slash in domain pattern in matching references as might be possible in local profiles


git-svn-id: file:///var/local/code.tiki.org/tikisvn/branches/13.x@52544 b456876b-0849-0410-b77d-98878d47e9d5