added clear and empty function for typesystem
added empty member function

empty calls virtual do empty.