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

Add a test case showing the problem
Java 7 diamonds