The implementation of hook_uninstall uses a SQL query to remove variables from the {variables} table this does not seem to work and is probably dangerous. I think it would be better to use another database table to store the node types which can be 'favorited'