Array class usages replaced with std::vector && change at write/readPortableArray functions