WICKET-5366 ResourceAggregator looses information about priority/filtering/... when using a bundle

Add a test case showing the problem
WICKET-5366: rewrap bundle-HeaderItems after resolving