added ranges to typedeclarations, this should make it easier for people who want to modify the AST to update nodes.