Generate use sep_close_smaller. Improve tree walk macros.