Fix inf, -inf, NaN literals in Entity Framework

Backport from #413