[BUGFIX] Package meta data do not contain package type. (Revision 1)

When loading packages using the PackageManager class, the associated
MetaData instance is not initialized with the package type.

Change-Id: I49211adf9c7279e8c94e67ce57fa9b07c0c2c369
Releases: master, 2.2, 2.1
Revision-Id: 56ef67f70512220ff27121fb56a69dc47b7272c1