Fix: make limits/... work with numpy arrays

Passing in a numpy array instead of a list fails checks like `if values:`
as numpy arrays raise an Exception: "ValueError: The truth value of an
array with more than one element is ambiguous. Use a.any() or a.all()"

Not sure if I got all instances...

Closes: #333