More work on regex compiler, use compiler for regex.prototype.test

Regex support is still limited. Negative regular expressions (for complex regular expressions) does not always work. Furthermore, the regex compiler is missing support for character classes, dot and begin/end markers - in adition to a number of other features.