Fix lots of warnings in docs/Examples that crash

Fix some examples that crash.

Doesn't get all the warnings, but a significant fraction.  (Let's automate the doc build! :+1:)