Use zend_register_internal_class_ex to implement inheritance without the need to explicitly register a PHP_ME, which closes #58.