fix to outputUpdate.cpp array inputs (upperbounds on array indexing)