Update recast to v0.7.0 and use the visitor API.
v0.5.0