fix DataModel::wrap_lua() not returning an int