fix possible notice for elementlist elements when default value of 0 was not being turned into an array