Construct MagicMatch from type, value, mask, startOffset and rangeLength
Exception if value length does not match type.
See Implementation
Construct MagicMatch from type, value, mask, startOffset and rangeLength