Add static modifier to inner classes that don't access parent

These inner classes do not access any members of the enclosing class, so there is no reason for every instance of them to store a reference to their parent.

In the case of `PGraphicsOpenGL.Triangle`, the previous behavior probably led to much higher memory usage when many triangles were allocated.