A multimap with optional type safety