error if defs as a lib got an AST input but was asked to produce a string output. fix example in README