Linear Wald Methods for Inference on Covariances and Weak Exogeneity Tests in Structural Equations