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

No match.