Revert "make the xcf check a bit more readable"

Definitely does not work with Uint8Arrays

This reverts commit 845f6e2c9f8931d5b6af075280ee28785f032e6e.
add test that verifies that it works with Uint8Arrays