more bug fixes in lammps data and gromacs writers