Define Object in a separate module.
Import Object from base.
Import Object from base.
Add ref() and id() to Resource.
Test ref() and id() in Resource.
Handle Type=None in Resource.id().