Update: Declare ES6 collections (Map, Set, WeakMap, WeakSet) as built-in globals (fixes #1189)

fixes #1189