Fix broken detail::transpose_index().
Fix non-simplified detail::determinant_type<> for N=1,2.
Update example code.