Code cleanup
Adds __name field to exposed classes' metatable.

Each exposed class has a metatable. The '__name' field is added to it, and
it has the exposed class 'className'.
This way, we can know the className from the metatable (which wasn't possible
just by looking at its members in some cases).