Raise TypeError instead of ValueError

to be consistent with AdvancedIncSubtensor1