refactored logger to support array values out of the box.

fixes #3245, #3244
fixes display of array log messages in debug toolbar

fixes #3244
Merge pull request #3755 from yiisoft/logger-arrays

refactored logger to support array values out of the box.