[runtime] Fix the marshalling of ByValTStr types which have a size specified. Fixes #20674.