Nintendo 3DS: Call gfxExit() at exit

Also reduce the TOO_BIG constant in OFObjectTests, as apparently passing
sizes >= 2^31 to malloc() or realloc() breaks everything in weird ways
on the Nintendo 3DS.