[BYOC] limited function numbers on crt runtime

That’s an interesting point. I found that our function index is uint16_t so we should be able to support 65536 functions. However, the function number is stored in the first element of reg->names, which is a char array with only 8 bits for each element, as uint8_t num_funcs indicates. So we in fact can only support 256 functions.

The solution should be separating function number to a standalone field in TVMFuncRegistry and make its type align with tvm_function_index_t .

cc @areusch