Refactor recurrent network test for new network API.
Refactor recurrent network test for new network API.

ajjl/mlpack,stereomatchingkiss/mlpack,palashahuja/mlpack,darcyliu/mlpack,theranger/mlpack,theranger/mlpack,ranjan1990/mlpack,ranjan1990/mlpack,palashahuja/mlpack,ranjan1990/mlpack,ajjl/mlpack,theranger/mlpack,stereomatchingkiss/mlpack,palashahuja/mlpack,darcyliu/mlpack,ajjl/mlpack,darcyliu/mlpack,stereomatchingkiss/mlpack