Fixed gamma-ramp marshaling, more out params

Nothing too big here, just some stuff I missed last time. The get and set gamma ramp functions want fixed size arrays, so I marshal those properly now. Also missed a few out params on my previous pass, so I fixed those up as well.