some EDFs were still casting indirect lighting when they shouldn't.
fixed slowdown when trying to retrieve the value of absent optional parameters.