fixed bugs #1373, #2629, #2719
added tests for #1373, #2629, #2719; fixed another bug in determinant(Matx<T,n,n>)
Merge pull request #339 from vpisarev:core_fixes