Fixes #27978 * Add missing assignment for param key in fallback handling * Add check for frozenset type * Unit testcase