Fixing `doto` to be API compatible with Clojure's `doto`

Added a couple of tests, fixed up documentation a little