New3dapi: Add Model.ManagedInstance, implement Disposable for Model, ModelInstance...

- Make NewMaterial and Attribute implement Disposable
- Make Attribute.type public final
- Remove deprecated NewMaterial methods.
- Add Model.ManagedInstance
- Dispose materials on Model#dispose and ModelInstance#dispose
- Make Model keep track of its instances and dispose them if the model is disposed.