Fixed the luaclass.

* Fixed the class definition construction process.
* Added state function for getting table values.