Bulk save functionality (setItems method) + other minor fixes

No new tests, existing tests work
I'm surprising our code style rules didn't complain about this, but please use a newline for the contents of a function.

I've made a note to fix this (#319).