Updated line-search invoked when reaching NaNs/Infs in gram/xy to work with lambda-search + strong rules as well.