Fix overloading with list types (fixes #26)