Bulk save functionality (setItems method) + other minor fixes

No new tests, existing tests work
I liked it more when the var was initialized with a default value, instead of setting it in an `else`.