raise TypeError if subs for evalf is not a dictionary