Fix issue when returning arrays of length zero as results of method evaluation.