Fixed a call to delete where delete[] should have been used.
Added support for constructing a Future from a Try.

Review: https://reviews.apache.org/r/20106