Fixed multiple type controls

- Fixed type control in MonomorphicDictionary
- Added type control in PolymorphicDictionary
Merge fix