Normalize frames for trace items since they can contain invalid data.

Refs https://github.com/Seldaek/monolog/pull/474/files

The fix in the previous PR did not take into account that there might be object wrapped resources that would break json_encode, so the best solution would be normalizing those frames again.

@Seldaek Sorry for the inconvenience, but our graylog is still ramming up with those json_encode error messages.
Fixed `array()` usage and added `HHVM_VERSION` check
Use different testing pattern for PHP 5.4 and PHP 5.5
Merge pull request #475 from tPl0ch/hotfix-normalizer-formatter

Normalize frames for trace items since they can contain invalid data.