Modifies inflate() to return a discardable bool. Refs #1048.
Uses swap() to avoid variable copies. Refs #1048.
Uses finally as statement to release zlib memory. Refs #1048.