[WIP] Refactored ast_map and friends, mainly to have Paths without storing them.