Added setArray API to set particle attribute data from a NumPy array