GROOVY-6374: The proxy generator should not allow a final class to be proxied