As F2018 15.4.3.2 (6), the specification part of an interface body may
specify attributes or define values for data entities that do not
determine characteristics of the procedure. Such specifications have no
effect.
The case of passing arguments of rank mismatch hits one assert when
the actual argument is assumed-shape array and the dummy has different
rank. The case is from one actual workload GSI:
https://github.com/NOAA-EMC/GSI/blob/48d8676e870a6493ad6972c3785ef4493ab5d5d9/src/gsi/m_rerank.f90#L283-L291
Support this by reboxing the actual argument with the dummy argument
shape.
Fixes #57620.