Model studies of long Josephson junction arrays coupled to a high-Q resonator