Fixed two bugs

1. Revit was crashing due to prematurely closing ASM
2. Lists were passed incorrectly to DesignScript scripts