Residual properties of graph manifold groups