Adjust handling of $structure and $components having different counts

This reverses the handling of the case `count($structure) > count($components)';
rather than hack off ending structure elements, hack off beginning elements.
Merge pull request #216 from dtrebbien/patch-6

Adjust handling of $structure and $components having different counts