Add two methods to the `WP_Object_Class` class whose absence causes fatal errors in WP 3.6.

The `WP_Object_Class` implementation already leverages the data these two methods manipulate.