Convert ext/standard/class_object to HNI

Also moves get_called_class() out of function and into this, as that's how the PHP docs groups it.

Part of #1480