R: fixed a memory leak in get.stochastic().
Updated some unused signatures in the interface definition file.
R: fixed some memory leaks in the ray tracer.