Coerce Complex with only real part

Reference issue: #3142