I am not positive, but I believe it is a microbial film. I have had the same thing on my heater, and my platys nibble on it. Maybe someone else will be able to give you a definate answer.
Sorry, didn't see that it was on your lid. That is likely a calcium build up...I have fairly hard water.