The small South American country has a long history of passing socially liberal laws, legalizing marijuana, same-sex marriage and abortion long before others.