Fix type specialization and inference for empty lists.
Merge pull request #44 from martinisgroup/u/maffoo/fix-list-types

Fix type specialization and inference for empty lists.