replace function names starting with g: to CamelCase (fix #326)