Fixed attribute setting of simple particles, and many more changes.