plumb some locations through to the AST

These will be needed for error messages when converting to IR.
fix the last instance of the . being separate