initial PShape implementation for JAVA2D
cleanup and sanity checks
PShape of type GEOMETRY is treated the same as PATH when drawing.
Merge pull request #2756 from galsasson/pshape-java2d

PShape for JAVA2D
pack() after maximizing, takes care of #2562
Possible solution for #2677
Further work on #2755
a minor tweak