reflactor(parser): rename parser_static and parser_dynamic into static_closure_map and dynamic_closure_map

Closes #1250