static size for mix diagrams and adding missing custom definition in multitype switch