Write more cases for conversion from AST to Ast type.

Only doing a small subset of expression forms at the moment.

Test that both this and valid_ptree check are good at the bottom of
the script file.