Issues 1048: Replace implicit array_key_exists in PHPUnit_Framework_Constraint_ArrayHasKey with offsetExists for ArrayAccess objects