Avoid deprecated FileBody constructors and clear up reflection warning.

Just happened to notice some deprecated constructors being used. Wrote a minimal test as well.