util/curry: reworked curry to use context

Context based curry just like util/construct