Additional tests for applyLeafMask.

These currently fail.
Restructure applyLeafMask.
Additional tests for Embedding.
Fix applyLeafMask.
Another Embedding test and fix.
Another bug fix in applyLeafMask.
Merge pull request #10 from d-meiser/fix-applyLeafMask

Fix apply leaf mask