I created a bugreport on the QT website.
Some kind people there attended my problem and confirmed, that at least the difference in the behaviour of importing from a .js file vs. a .qml file is not intended.
.js
.qml