Allowing nested $refs