Include type information in reflection warning messages