add R.identityN

This function can be used to define the identity functions discussed in #511.