* preliminary fix for bad error message with const * add test case * fix tmatrixconcept and tmatrixlib