several fix for lua scripting
several fix for lua scripting

wfxiang08/ardb,spitfire2/ardb,lsm/ardb,spitfire2/ardb,tempbottle/ardb,yinqiwen/ardb,wfxiang08/ardb,lsm/ardb,bssrdf/ardb,yinqiwen/ardb,tempbottle/ardb,cloudrain21/ardb,cloudrain21/ardb,placrosse/ardb,placrosse/ardb,bssrdf/ardb