fileargs: add wrapping/unwrapping functions
Those function may be useful to pass fileargs connections around.