fixed bug in mapping of lists with hierarchical types