Unregister an object of a transaction

Pull request for #31