outlining support for switch blocks\array literals

fixes #770, #771 
do these functions handle the case where either open or close is missing?  Thanks!