Fix for importing scala classes, which lie in backticked package. Test fixed.
(cherry picked from commit 8688d50)
Back to better variant to avoid freezing. #SCL-6439 Comment
(cherry picked from commit 9b67909)