Support promises in __getItem and _getRoot