Add check for assginment when collecting freevar.