fixed nested list parsing

fixes #49