Export a function that allocates constant object in an expression internally

It is for mruby.