Fixed nested masks and changed render logic.
Fixed wrong render context state after mask restore
Merge branch 'master' of https://github.com/bp74/StageXL