Increment TYPE values by 1.

This commit changes the pattern encoding to store each TYPE as 1-3
instead of 0-2 (in a 2 bit width space). This allows NULL patterns to
indicate pattern termination, which although unnecessary when all
patterns are valid and intact, may be useful for error detection due to
corruption and bugs.