Second version of curry that doesn't do variable parameter count
overloads but uses references when possible.