Optical::analyze add consistency check
During analysis a LightResult is used as input for the node::analysis function. Maybe it would be helpful to add a consistency check through checking if LightResult has ports defined which are not ports of the node and thus being discarded....