dict is also allowed (closes #19163)
#19166: use an unused var in a test.  Patch by Vajrasky Kok.