Proper fix for the pack_structs() structural API method.
This was incorrectly done in r18858, but now the index of the new molecule is handled correctly.
Authored by: bugman 2013-03-19
Parent: [r18866]
Child: [r18868]