doctester: support comparison of floating point numbers + support future imports

Fixes Issue 3760