function toArray(source)
    {
        var result = [];

        for (var i = 0; i < source.length; i++)
            result.push(source[i]);

        return result;
    }
Converts the source to array object. Mostly used for function arguments and
lists returned by getElementsByTagName() which aren't Array objects.
@param {List} source Source list.
@return {Array} Returns array.