Added getnamedty for getting actual types out of names