Core: Moved some constructors from matrix.hpp to matrix_def.hpp

Could cause some linkage issue when matrix_proxy.hpp was included but not matrix.hpp