- fixed support for local function branches
 - added test coverage