Fixes #701, fixes #492: Printing of numpy arrays of CasADi expressions for recent numpys