Improve the performance of Map's algebras.
Improve the performance of Map's algebras.

We noticed an issue in cats-kernel where operations over Maps were
incredibly slow. This commit ports those fixes over here, where our
additive/multiplicative monoids experienced the same issues.

sritchie/algebra,denisrosset/algebra,tixxit/algebra