Updates getSnippet() to be able to use arrays for variables. Fixes #22