Curry functions and nested objects fixed

@vjovanov 
Extra space