New Interpreter::validate() to identify issues with a document before running it