cpp BitmapData.threshold() now passes these tests:

-Basic functionality
-Decently optimized for straight "==" palette swapping
-Returns same # of pixels changed as flash target
-Returns same visual output unless you mess with destPoint
(will figure out destPoint later)