Convert val from struct to union.
Remove definitions from vm header.