Clarify type errors.
Use subclass of TypeError instead of non-class method for clearer type errors.
Merge pull request #2441 from chrisdembia/informative-typecheck

Clarify type errors in physics.mechanics.