Adds tests in the compiler to verify the compiled output and template type checking behavior of model inputs. PR Close #54252