Fix shorts. Add test cases for shorts.
More fixing shorts.
Try to keep integer precision by briefly casting to double while decoding and encoding.
Fix float conversion.
Tests for edge behavior
When doing a perfect po2 nearest neighbor downsample don't allow -0.5 and 0.5 to both contribute to a texel or you'll get a double tap.
Test channels.