Cleaning up pyMDL base_types and nodes to accomidate extended types better.