Attempt at refining internal AST types.