GROOVY-5449: @Immutable should not throw NPE if an unmanageable type is used