Fixed the allocation return code check in ValArray::init.