Revert "Return the ifstream from agi::io::Open by move"

This reverts commit 1f5484fedb8bd451f9c465b1d8e40f35491f5000.

Move constructors for fstreams are not implemented yet in libstdc++.

Closes #1578.