Add tests for matrices mixed with other functions
When function lists contain matrices, only do matrix decomp for the matrices, not the whole list.
Removed printlines