math/matrix: reduce code repetition in initializer_list constructor
math/vector: reduce code repetition in initializer_list constructor