inspired by https://github.com/SimTk/msmbuilder/issues/217, add some more robust type checking on atom_indices. in particular here, we're checking that the indices are actually integers.