Add constructor judgement for Lua binding in registering class