Now that we're using our meta wrapper graph struct instead of the pgraph, we can re-implement our SetValue hacks in terms of struct fields and the implementation is now cleaner.
This is the mechanical port of the remaining bits. Next to clean it up a bit.