Curry functions and nested objects fixed