[BUGFIX beta] add assertion against dynamic {{input type}}

Closes #5047
Merge pull request #5068 from amiel/input-type-nondynamic-warning

[BUGFIX beta] Add warning to variable {{input type}}, with working tests