BUG: Fixed bug in lagmat when using record arrays

Fixed broken lagmat when using record arrays
Added test for ddof
Added degree of freedom argument to cov_nw
Added tests for using lagmat with record arrays