restriction can now restrict by numpy structures, numpy array, dicts, and dict lists.