Updated dimensions structure to have templated copy constructors and templated assignment operators.