Fix inf, -inf, NaN literals in Entity Framework

See #412.