Change Util::throwIfNotType return type

Util::throwIfNotType now returns true on success.
Use strict mode for unit tests
Update to PHPUnit 4
Add Arrays::extract