location, ast_helper: add location annotations to ast

Untested.