Tests and bugfixing.

Tests for all functions (those that were not just wrappers) written.
Bugfixes for indexOf and lastIndexOf.
contains method completely rewritten using indexOf.
Added the possibility to use equals with a php internal string rather
than just with a String string.