Fixing SWIG compilation issues for io/ and matrices/ and working towards figuring out why Hadamard is not considered a member of elem by SWIG.