Demonstrate bug in nested clipping.

When the inner group goes out of bounds, its contents stop being clipped.
Fix nested clipping.

This appears to only affect java but I've added the minimal logic for iOS too.