Treatment methods and recycling of polymers and bioplastics