PHP 5.4 array_diff() compatibility

Pulled the proper fix from rezzza.

Solves #1.