This is where the confusion lies: Google claims Oracle is copyrighting an interface to Harry Potter (as per your example) -- i.e., they are claiming copyright to any / all characters that are (1) a boy in his early teens (2) has magical powers (3) goes to wizard school.
Now, the question is, where do we draw the line: As per Oracle, there cannot be any other character that does what Harry Potter does.
Copyright law already allows you to copyright specific combinations of unprotectable elements. It's called thin copyright, it's why Katy Parry got sued and lost, and it's software application is called Structure, Sequence, and Organization (SSO). You can in fact claim copyright on all characters that look like Harry Potter, because the standard for copyright infringement is "access and substantial similarity". This is because if your copyright doesn't extend to someone blatantly tracing over your work, then it's not a copyright.
You specifically need to argue that the API itself - the specific combination of types in a specific order, with a given set of Unicode or ASCII characters to identify it - is not copyrightable, not just that it's made up of uncopyrightable things. This is harder, because this same practice in other contexts (e.g. music, literature, and so on) is very much protectable. You need to argue that software is different.
That's a stretch. Oracle is claiming copyright on a specific API with a specific name, specific organization and specific individual components / attributes. It is not claiming copyright on all standard lib APIs. In fact, there is no evidence that Oracle has any intention whatsoever to sue Google over Go or Dart.
This has become a huge fad in countries like India of late (seen this first hand). Rather than aiding the learning experience, these are used by institutions to brand themselves as "smart schools" and in turn charge higher fees for providing so called "smart e-education".
Then there are xyz companies capitalizing on this by building custom tablets/ipads with their own educational content ripping off both schools and the parents by selling "premium" content that helps students have an "edge" among their peers.
But then, for most parents this is also a matter of pride - "my kids attend a smart school! What about your kids?" which is fueling this pathetic trend.
Almost all of my cousins are enrolled in these smart schools and they don't care much since they now have device to play games on in lieu of learning something meaningful.
I feel sad to see these in a country where there aren't proper schools in thousands of villages.