Centralizers in 3-manifold groups