Enabled type.extend to take strings.