Remove debugging statements from matrix_proxy and pycore, and fix ndarray memory bug in _viennacl