fix bug when STACK_OF(OBJECT):totable() function