[interp] use helper function to check if generic inst is a value type