Rewrite tests to not use a function as a map key
Rewrite tests to not use a function as a map key

This is necessary as a result of 8b46201, which removed the misfeature of
supporting this.

gopherjs/jsbuiltin,gopherjs/jsbuiltin