intflib/tasklib.py: fix scalar refant

When invoked from the command line, refant always will be an array, but from a
script it's reasonable for someone to set it to simple string. Support that.

Fixes issue #1.