Updates to refDB, use Map representation for completions when ES6 Map is unavailable