go1.1 changed the size of an int on 64bit architectures from 32bits to 64bits which causes weird issues when casting ints from c-land
Revert "go1.1 changed the size of an int on 64bit architectures from 32bits to 64bits which causes weird issues when casting ints from c-land"

This reverts commit 2d8c520fef20d0896c8de197f831daf9afda2292.
Getting PR from quarnster into master: https://github.com/moovweb/rubex/pull/2
catch whether the regex is valid or not before we perform any operations

the problem was that we assumed validity and so setting .count resulted in an npe. if we simply create an empty MatchData, we run into issues later where we rely on len(matchData.indexes) > 0, which it will not be. we call ClearMatchData() at the beginning of all regex functions, so it seems OK to check out the regex here.
Revert "catch whether the regex is valid or not before we perform any operations"

This reverts commit 9db8ca146e2c292829836e69939c6f870953ed86.
Merge github.com:moovweb/rubex