Refactor value nodes to be of type Value instead of string.