Recursively create single property objects if needed, and assign the value to the last property created.