optional validation of scrooge/thrift Document

Minor issue but maybe put this on the same line as the case to save space.