Pay attention to types in filterset, fixes #229.