Fix github's issue 2775

This closes 2755.

Second commit is optional.  I'll replace one (with fix like one for \_eval_is_real) if there is any objections.