Fixed bug; Added 2 new samples

- fixed bug of expected function lua stack argument (integral::detail);
- added samples: class and inheritance.