rename Vars -> Captures
handle captures without yield
optimize capture with integer id
cleanup captures