Fix and test .name for composite types