set the value of nested obj at a given dot-path