Give better name for errors when parsing docs.json
Fix nested pattern matching in let expressions.