Constraints on the Distance Moduli, Helium and Metal Abundances, and Ages of Globular Clusters from their RR Lyrae and Non-variable Horizontal-branch Stars. III. M55 and NGC 6362