Adding fclose optimizer, fixing magic setters/getters implementation