Fixes #31: Added array support in hamming distance