Ugandan critic freed after 16 months in prison