overrides native Map if entries() is undefined

relates to #1301