StaticImports are copied into new package instance

(cherry picked from commit 66b0e2c2e4649f17e31e80b0176f85926bbcc5d7)
Regression test for static imports in knowledge base

(cherry picked from commit 5f67108c0307f4db5861887f5672e45aaeaf7b50)