bugfix: missing factor of 2 in L2-regularizer gradient.