preserve currying in R.compose and R.pipe