New3dapi: Fix explosion, allow overwriting material attributes.

- Add Material.Attribute#set(Attribute)
- Overwrite an attribute if it's added and the type already exists
- Fix explosion in invaders