Fixed support for creating instances of builtin (eg. SPL) classes in PHP 5.5

Fixes support for mocking eg. Symfony's `UploadedFile` class in PHP 5.5.