I just bought a D40 for $17k. 2007, 130k. I wanted a dual cab that I could get into the back easy enough, and didn't want to pay out for a new shape Ranger, BT50 or Colorado. For the same money a hilux was another couple of years older, or 50,000 more kms. Older Ranger, Nissan D22, older Colorado etc were all too small in the back.
Here is another thread, on the same topic.
http://www.myswag.org/index.php?topic=45999.msg778887#msg778887I have been warned about the D40 failing clutch and also the timing chain, but decided to jump in anyway. We have an R51 pathfinder and have been happy with that so far, which helped sway the opinion. Another thing to watch with the older D40 is that the low spec models (RX and ST) only have a lap belt in the centre back. Only the STX has lap sash, which was important for me with kids in the back.
Don't know how you'd go about fitting a bench seat in the front, never seen it done, but not knowing
Happy hunting.