core: add expr_get/set_parent_stmt() accessor functions