Grid updates for TreeMesh, initial generalizations for OcTree