[WIP] RMSD segfaults with memmapped arrays

Steps
- [x] add test
- [ ] fix bug