Made compileRegex non monadic and added a caseSensitive parameter.

Checking state for this parameter was slowing things down 2x
from 0.5.6 speeds.