Add support for nested value in __init__, __setattr__ and __setitem__