Fix the return values of function_template.
Fix the function return value in node v0.10.x.
Add MATE_PERSISTENT_INIT.