Ray: store refractive index in ray during propagation
During raytracing sometimes infos from the previous and / or following node is necessary: I.e. for a surface node, the refractive index of both neigboring nodes are necessary to calculate refraction.