Remove incorrectly and newly introduced assert

Was failing in li_boost_shared_ptr.i for some languages. A similar
testcase has been added into naturalvar_more.i.