WICKET-5085 InlineEnclosure are piling up on each render

Use the loopitem index when creating an id for InlineEnclosure in repeater
WICKET-5085 InlineEnclosure are piling up on each render

- check all parents whether there is LoopItem
- make tests more flexible to auto-generated ids