add istype function, and use Base.is_expr where appropriate
Start writing tests using FactCheck
added tests to travis.