rest: fix RestMethod.isReturningArray

Handle correctly the LDL type `[Item]`.