`resubstack()` is never referenced, but there are issues that we aim to avoid as much as possible in it - I guess it's better to fix them even in that dead code.
This needs to check first whether `t_val` is an actual `MCStringRef`.