Merge pull request #229 from nhr/ha_tweaked

Fixed typo
Trying to make more flexible template logic
Merge pull request #230 from nhr/array_protection

Array protection
Merge pull request #231 from nhr/array_protection

Trying to make more flexible template logic
More robust handling of arrays that may be parsed as strings
Merge pull request #233 from nhr/improved_array_protection

Improved array protection
Excessive but operable array tests
Merge pull request #235 from nhr/more_array_work_mb

Excessive but operable array tests