PHP 5.4.30 5.5.14 compat

This patch allows instantiation of internal classes even though they don't allow custom un-serialization.

Hereby, we simply extend those classes and override their constructors.

TODOs:

 - [ ] check security implications
 - [ ] check for other internal classes with this problem
 - [ ] check for `final` in either the class or the constructor of the class