function: Root misc functions
function: Root misc functions

This converts everything else in function.cpp to use exact rooting, that
would otherwise have caused a compile error in mozjs31.

https://bugzilla.gnome.org/show_bug.cgi?id=742249

endlessm/gjs,endlessm/gjs,endlessm/gjs,endlessm/gjs,endlessm/gjs