Simplified code

- Incompatible change for code references, where the code just checks
  the value;

- Performance improvement for Regexp keys, since the subroutine is
  pre-compiled;

- More tests;