Fix overload resolution with ducktype compatibility

Ignore ducktype compatibility (e.g. int being compatible with float)
when determining which overload variant to pick, since ducktype
declarations are not honored by isinstance().

Fixes #410.