[utils] added: make curried function serializable