fix, test, document Triangulation::register_data_attach

- fix a bug in an assertion
- add a test
- document how the CellStatus in the callback function works