Add logging to `importHelpers`.

Also fix type hints, `instanceof` is not required or valid.
Merge pull request #161 from leftclickben/ImproveErrorReportingImportHelpers

Add logging to `importHelpers`.