Fix problems reported / implement enhancement suggested by @wkeese
during review of PR https://github.com/ibm-js/deliteful/pull/195