AM: logic to guess atomic number at one place

Also not it is always int(abs(z)), remove the assertion if never
fires.