added toluaEx: fixed bug of memory leaks of tolua