Fix edge case with arrays and heredocs