Very true, you could enable the Finder to show hidden files and then restore just the vm folder with that.
The /var/vm folder is just used to store the sleep image and swap file for OS X, so you should be able to simply recreate it using the Terminal in the Recovery HD partition, and not have to deal with reinstalling or restoring.
To do this, select Terminal from the Utilities menu in the OS X Tools interface (when you boot to the Recovery HD partition). Then enter the following commands:
mount -uw /Volumes/Macintosh\ HD/
mkdir /Volumes/Macintosh\ HD/var/vm
After doing this, use Disk Utility to repair permissions, and then restarting should have OS X use the folder for the sleep image and swap files.
Message was edited by: Topher Kessler