Add assert on types of args for funjible.set/index, map-invert, and join

Also add examples to several doc strings, and generally clean up doc
strings in several ways.