GROOVY-6616: @CompileStatic Reference to constructor is ambiguous

added non regression tests
GROOVY-6276, part 2: Fix outer class property not visible if using getter