fixes issue with creating default numbers of nested repeats, closes #359