Improve ZARRAY documentation and implementation