removed silly feature in SetComplexDiagonal that only sets if Val == 0! broke the placeholder!
finally found problem with placeholders! SetComplexDiagonal has an option where if the val is 0, then it doesn't MatSetValue to save time. This was breaking the diagonal placeholders.

I added extremely
adding 1e-30 diagonal placeholders ONLY inside medium.