change: accept __index method.
fix: should render class metatable for security reasons.