Things to check when writing an element
Make sure the state of an element gets reset when going to NULL.
Ideally, this should set all object properties to their original state.
This function should also be called from _init.
Things to check when writing a filter
Things to check when writing a source or sink