AngularJS directive for handling nested repeats where the depth is unknown