Inherit VEX_FUNCTION(v2) implementation from UserFunction

This solves the issue with member templates of local functions.