A 1.3 mm SMA survey of 29 variable young stellar objects