Add deprecation warning for when.chain. Closes #113