[artf55338] Fix array out of bound for default package component

And add corresponding test