mathfun_context_define: fix uniquness checks