fixed lua 'new' and 'delete' wrappers