CLN: move some functions from tools.merge to core.internals
CLN: calculate & use _ref_locs for unique items as well
Move get_series_dict to DataFrame
Use factorization when grouping ref_locs by block

Python3 complained about FloatBlock being non-comparable with NoneType