More robust way of writing bond/angle/dihedral info to the raw data arrays.