Updated SerialMesh::stitching_helper to enable stitching on node and edge boundary IDs