getArg() now support array-like arguments; Refs #151

Supporting array-like arguments in getArg is better than ensuring the
type of arguments to be array in caller-side. Also, we replace
Array.from() with Array.slice(), since Array.from() is not supported in
older Firefox.