Mask tests, definitely buggy.
Add test library functionality to make it easier to use GPU debuggers.
Fix issues in nested mask behavior.
Rename remaining library parts back to Frames.
Update todo.