Rewrite two-dimension array (LbsArray2) and add test suite
Remove unnecessary checking in lbs_*_ref
Check NULL pointer before unref