#1902: fixed incorrect handling of dimension masking in CovarianceLinear (and checked all other covariance functions)