Proper handling of update_item attributes, with tests. Fixes #7.