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

Closes #2255, #1044