Add EventMap.withContext, and allow passing functions to EventMap constr...

...uctor and EventMap#extended