Fix a small error in the sample repository code.

TodoRepository.Store(): modifying an object added another copy of that object to the repository, instead of updating the existing one.