[flang] Test and document legacy allocation-placement opt-out handling
In legacy mode, a function that opted out of -fstack-arrays in its own policy
is handled as if -fstack-arrays was not set, so that -fdynamic-heap-array
applies to it as it does without -fstack-arrays. Test it, and document when
the stack-arrays and dynamic-array-on-heap options apply.