Anvil: switched inflate to stream mode.

This removes the fixed-size buffer which could have caused #1307 and #1366.