Close #5047 -- add assertion against dynamic {{input type}}