object array output fixes and tests