Allow kwapply for any expression.

This fixes #103.
Add some tests for kwapplying expressions
Merge branch 'master' into pr/171