ffi/com: doc correction
ffi/com: improve handling of `type-described'

Use a type description when an automation-supplied type
is just 'any.
fix internal-definition expansion

The code added to handle expressions mixed with definitions was
not introduced in the right way; fix it to be like macro-introduced
code.

Closes PR 13452