make small ty_struct immediate

Closes #9651