Fix sigmoid finite answer and flattening SIMD MLPs
Fixes issue with NaNs as described e.g. Rec!3923 (comment 8028759) fyi: @jonrob
Needed for training the models for Rec!3923 (merged) and Moore!3480 (merged), can be merged separately, no ref update needed
Edited by Maarten Van Veghel