Add method to clear language set by withLang

Fixes issue #838. Also added a couple of tests.

I used clearingLang instead of discardingLang. I'm happy to change the naming though.