Try to coerce Complex with only real part.

This closes #3142.
added a spec for coercing Complex with only real part into Float
Merge pull request #3143 from Benny1992/master

Coerce Complex with only real part