Test that a stub for a class that implements the Serializable interface can be created without invoking the constructor.

This currently fails with PHP 5.6.
Merge branch '2.0' into 2.1