turn enum DynamicsType into class enum

but I wonder why not taking Dynamic::Type instead?