refactoring to pass backreferences as far back down as FragmentRepeaterElement
implemented backreferences, but with a bug