Make public non-input/output components in function protected
Some functions use constant variables which are neither input or output, but aren't protected. They should be protected as mentioned by Adrian Pop in !3 (closed) : "The following commits existed among the OpenModelica patches to the library (what we used to use to test ThermoSysPro). Since this Github repository now exists, we should test against it but nothing works without e8c8e0b8."