Curry functions and nested objects fixed

@vjovanov 
Can we test with more than 2?