Proper list conversion. Closes #811
Added tests
Merge pull request #813 from chrisfilo/fix/melodic

Proper list conversion. Closes #811