Add support for setting deeply nested, possibly nonexistent keys