However, because the jurisdictional question was intertwined with the merits, and because the court relied on affidavits and other evidentiary material submitted by the parties, defendants' motion to dismiss should have been treated as one for summary judgment under Rule 56(c).