dropna added for unique method. Performance improvements for nunique method.

ref pydata/pandas#7771