Fixed typo in raising type errors.