Fix the coverity issues

This PR is to resolve issues raised by coverity.

BUG=XWALK-2928
And now you're initializing the members in the wrong order... `manifest_type_` is declared last in `package.h`, after `name_`.