Make FlashHash#key? work with symbol and string

Closes #17586