Fix the formatting of reference array types in stack map frame outputs. Closes #317942 See merge request !316