Adding util function for adding items to nested dict.