working compact encode and import spongy Arrays