change ctx.length and ctx.type to always delegate to response object [breaking change]