Improved error messages and fixed List[primitive] but
removed unneeded dependency