Fix exception "Serialization of 'Closure' is not allowed" when running tests

PHPUnit has an issue serializing closures, and `Doctrine\Instantiator\Instantiator` contains a closure. The `$backupStaticAttributesBlacklist` property canot be configured on the fly and must be configured as a class property.