Fixed GatedRecurrent and tests