Optimize multidicts by adding __slots__