Dynamic::Var SOO

Dynamic::Var  small object optimization and some refactoring