Fix in equals on FunctionType (solved with @jurgenvinju)