GROOVY-6702: Fix public/private field visibility in traits