Originally posted by Rondec Distortion is more of a lens issue than a sensor size issue. I think you will find less distortion with a Pentax 12-24 than with the Sigma you have.
the DA 15mm f/4 possesses even lower distortion - however the smearing Andi Lo mentions is a side effect of the FOV stretching all UWA lenses have and the EF17-40L isn't any better than any other UWA zoom lens out there- the Nikkor 14-24mm f/2.8G I use handles it pretty well though it suffers from flare and it is very difficult to get filters for it (unless you use Lee filters like I do).
speaking of filters, Andi - I hope you have plenty of money to buy 77mm filters for the 17-40 f/4L for architecture you will need ND,GND and polarisers - all in low profile filter frames, especially if you intend on stacking them or you can fork out even more money for a complete for a Lee filter system - the "big stopper" 10 stop ND from lee works great, but it will cost you.
if you want to use an UWA without the smearing, you should try the Pentax D-FA 645 25mm f/4 AL [IF] the images I have seen from that lens doesn't suffer as badly from the smearing 35mm UWA lenses have which is impressive considering it is effectively a 19.5mm focal length on the 645D - oh and did I mention the D-FA 645 25mm f/4 AL [IF] is a full frame 645 lens?