utils/safearray added size() method and renamed variable size as _size