I have a quick hack to 0.8.6i that adds VDEF support. You have to add the VDEF commands as a custom string in the CDEF config and there isn't any error checking. It only modifies one file, lib/rrd.php.
I'm including the context diff.
Anything that you think should be in Cacti.