added safety checks to the vector helpers to avoid memory corruption
added safety checks to the vector helpers to avoid memory corruption

--HG--
extra : convert_revision : svn%3A9ea0355d-b33e-0410-9de5-817935624dc7/trunk%40115

cmbruns/osgswig,cmbruns/osgswig,cmbruns/osgswig,cmbruns/osgswig,cmbruns/osgswig