"where the amount claimed or other relief sought is within the jurisdiction such jurisdiction shall not be ousted merely because it is necessary for the court in order to arrive at a decision to give a finding upon a matter beyond the jurisdiction"