Issue 879: add test for series of a subclass of Function.

Now we can use also

    >>> class TestF(Function):
    ...     pass
    >>> TestF(x).series(x)