Only forward pure numpy arrays to numpy's where function, otherwise it fails in numpy 1.9