Informality, Economic Complexity, and Internalization of Rules