Fixing a couple of problems found when writing the OpenStudio -> Spreadsheet export/import script.

[#65125966]