Generalize the single-value type checking some more

Instead of extending just with np.float32, add np.floating
and np.integer types.