Fix a bug triggered by induction on exponential data types
Fix a bug that made lemmas not turn up in theories