Implemented possible workaround for bug in scipy.unique with numpy 1.6.2.