fix behaviour of R.compose when given one argument

Fixes #215