Hmm... your example seems to be producing correct code...
Tried both with tabs and without them (not sure if your snippet got tabs truncated or not)

I will revert that / change, we will get back to it later.