Fixed analyzer crash on illegally nested fns