Merge "Change put/merge methods to be type-safe in WriteTransaction"