[ADD] allow self-keyword in register and delete function;