Why does LTSpice say that my "Matrix is singular" for this ideal-transformer circuit?
You need a DC path between the two circuits. Put a high value resistor between them, say 10M.

I checked that it worked using Pulsonix (actually SIMetrix) SPICE. I got a singular matrix error without the resistor.