Set ModelNum for unrecognized heteroatoms. Fixes a bug when unit ids were generated incorrectly.