Added function to know if a type is a structure

Added function to know if a typecode is a structure type defined by the
user via IDL.