While we know that the drive unit in the RAV4 EV is based on the Model S, we don't know the extent that it is the same as what Tesla is putting in new Model S cars today. The RAV4 EV was released pretty early in the Model S production cycle. I'm quite sure that the drive units that are being taken out of Model S vehicles are being rebuilt and used for subsequent replacements. One reason we know that is that people are reporting on the forums that they got rebuilt ones when they were replaced under warranty. The same goes for traction battery packs. The HUM is probably a bearing issue either on the motor or the gear reduction "transmission". Some gears may be worn out of spec due to the bearing issues and may be replaced also. Inverter failures that cause drive unit replacement may be as simple as a circuit board replacement inside the drive unit.
I've not heard anyone say on this forum whether the drive unit they got in their RAV4 EV was new or re-manufactured, or if they could even tell. In any case, I agree that the extended warranty on the RAV4 EV looks like a very good idea for anyone that plans to keep one beyond 3 years and 36,000 miles. The prices posted in the other thread about warranties look very reasonable to take the coverage out to 8 years and 100,000 miles.
I just had a thought - what happens if you have the unlimited mileage lease and something major breaks within the lease period, but after the warranty runs out at 36,000 miles? Can you turn it in and walk away with a major repair outstanding, or do you have to fix it before they will close out the contract? I'm thinking you will have to pay. That's something to think about too.