factor out binding re-lookup and fix as #lookupAndFixBinding: and callit at the end of blocks and method on the temp defintion nodesfixes #4641
add test