Fixed error when response data is an array and envelop=false by refactoring transformer interface and methods