Welcome to the forum.
The diesel D40's biggest bug-bear (although it's not as common as it would appear) has been the timing chain, followed by the dual mass flywheel in the manuals. Earlier models (2006) had axle/bearing issues, 2007-2009 had timing chain issues, 2007-2011 had DMF issues (burning clutches). The petrol versions were pretty clear of major issues and are cheaper to maintain.
Early V9X (V6 3.0L diesel) models were powerhouses but the charge air piping would balloon introducing significant lag.
None of the models enjoyed K&N air filters that were enthusiastically oiled. A slight over-oiling would cause oil droplets to land on the MAFS which would burn the droplets on the sensor wire killing the MAFS ($400) and destroying the vehicle's performance.
Gearboxes are strong but the V9X's 7-speed auto suffered in 4LO because in manual mode it would still upshift around 2500rpm, not good for controlling a steep descent on loose material.
Front diffs aren't strong at all and if you're going to do any serious off-roading they should be locked (e-locker or air-locker for manual control, either is good). The rear diff is LSD and near bulletproof and later models (2010 onwards) introduce all sorts of additional safety features - a 2013 model will have EBD and TCS on top of the standard ABS.
Expect a 2006-2009 diesel to produce 126kW/403Nm, get around 12-13LPHK around town, 10LPHK highway. 2010+ 4cyl diesels (Spanish, VIN starts with 'VSK') produce 140KW/450Nm, get 11-12LPHK around town and 9-10LPHK highway. Thai (VIN starts with 'MNT') models from 2010 onwards still sport the 126kW engine. V9X diesels produce 170kW/550Nm (hence the logo "STX-550") providing town economy of 10-11LPHK, highway as low as 7-8LPHK claimed by some owners. Naturally these figures are for a fairly conservative drive and won't be achievable if you expect (or try to get) the same performance as a VE ute.
All models will tow 3T but require a 5-bolt-per-chassis-rail tow hitch rather than the 3-bolt (I think all models since 2012/2013 have the 5-bolt hitch).