fixed member variable access in OpenCS script compiler (Fixes #2011)
some cleanup