This commit ensures that we register reflection hints on interfaces in the entire type hierarchy. Closes gh-31350