Preserve behaviour under PHP 5.4

This "refactors" away the array to string notices that are now thrown in PHP 5.4.

Note that this change set merely makes the test suite pass again, it might very well be that stuff is still broken; the test suite isn't that thorough.