Do not call setLength on potentially uninitialized arrays.
Whitespace fix.
Merge pull request #78 from pjonsson/bugfixes

Do not call setLength on potentially uninitialized arrays.