Fix a serious bug in the preprocessor; problem inputs reported by Pantazis Deligiannis.