Fix type promotion for filtfilt temporary and output