You should remove the stan::agrad::sqrt using.  We don't want an explicit dependency between the basic forward mode and the reverse mode.  If using reverse-mode within forward mode, variables will bring in their appropriate functions via argument-dependent lookup.