Added setDirty method

Allow the developer to manually set an object as dirty.