Close loophole that allowed methodmaps for enums.