Less-verbose version of optionally for the most common use case.
Fixing some linalg edge cases.