preprocessor: issue warnings for undeclared model variables when the end of the model block is encountered. #1286