Use isRegExp in Assertion::throwException. Fix #25