587. A party cannot subject a class member other than the representative plaintiff or an intervenor to a pre-trial examination or to a medical examination, nor may a party examine a witness outside the presence of the court. The court may make exceptions to these rules if it considers that doing so would be useful for its determination of the issues of law or fact to be dealt with collectively.