Add validity checking for Inspect.Algebra documents
Merge pull request #1733 from meh/inspect-raise

Add validity checking for Inspect.Algebra documents