Add local/global index versions of GenericMatrix::ident