allow containers as clipping mask

needs lots of tests
Merge pull request #527 from claus/feature-mcmasks

Allow containers as clipping mask