Rmsd

Fix for rmsd segfault/corruption when using atom_indices argument, +test.