Curry functions and nested objects fixed

@vjovanov 
Done!