Add a test for reflection keys as Strings, fixes #16928

See also PR: #17610