Apt fixes

Some fixes to the 3DS APT:U service HLE emulation. Tested on various apps. CF 3dmoo. Not much else to say here...
Any idea what the zero-ed parameters do? They're not documented in 3dbrew.