fix(resource): check whether response matches action.isArray

Replaces #3054