* gcc-interface/decl.c (gnat_to_gnu_entity): Robustify test for types