fix NPE when trying to print null to screen in REPL
fix wrong orientation of matrix-vector product in optiml