[jit] Add ref types to mini_get_underlying_type (), use it to simplify the switch...