Made it such that Set::extract can now be used with both objects and arrays.

Will still have to fix the null return problem (#1).