Support setDensity in the unit of at/cc now.

Previous we support setting a material's density by calling the
material.setDensity(value, 'at/cc') command, but it was actually
not implemented correctly in the addIsotope(..) section and would
error out. This commit fixes it.