Rename __check_version__ to installer in preparation for adding the
functionality to try to upgrade bash if curl+gcc+make is available.
Remove unused functions in variable module.
Tidy array module code.