Fixes #1068 - clarify that import can only be used as top-level task, also throw exception