GROOVY-6592: Improvements to @BaseScript
   * allow @BaseScript on import/package nodes
   * improve test coverage