unaryapply_byname function

Apply a unary function by name