Remove array core extensions and restore sort by distance tests