Fixes Issue #299
This is a patch from Philip to deal with serialization and
package sections as named elements not having a name.