Use component and JRE names in diagnostics

Rather than using default to_s output.

[#57611752]