Add rb_class_real per #2358

Needs tests before it's ready to merge.

I put the function into class.cpp instead of object.cpp, but MRI has it in object.c. Should we match MRI on this?