phpdoc fixes
fixed recursive call of ArrayHelper::toArray()
fixed private / self in helpers

fixes #2886
fixed undefined variable problem in AccessControl