LAMDA fix: removed unnecessary overhead of conversion to numpy array,
and removed np.in1d.  np.in1d returned inconsistent results in numpy <
1.7 and numpy 1.7, and I couldn't figure out what caused the
inconsistency.