Override setResponseData: to ensure that data object uses desired allocator

See #2001.