JWST and ALMA Multiple-Line Study in and around a Galaxy at $z=8.496$: Optical to FIR Line Ratios and the Onset of an Outflow Promoting Ionizing Photon Escape