Work around a bug in syntax_tools in R16B03

Add a quick workaround for a bug in syntax_tools in Erlang/OTP R16B03:
calling revert on a syntax tree for "fun some_function/1" crashes,
while reverting the syntax tree for "fun(X) -> some_function(X) end"
works ok.
Prepare for 3.7