implement Map's finalize method
use ES6 Map in the compiler instead of Objects-as-dictionaries