Fixed handling of charges for atom types.