Insert and remove functions for typedlist