Optimized the implementation of assert_independent and removed spurious warnings