Rescue PrimiteFailure for Regexp.compile

On rubinius, Regexp.compile(<Integer>) raised PrimitiveFailure instead
of TypeError raised by MRI.
Loosen message match on KeyError

Rubinius's wording is slightly different.