refactored to use the ?FUN_APPLY macro to handle various forms of function applications.
refactored to use the ?FUN_APPLY macro to handle various forms of function applications.

andrzejsliwa/wrangler,arcusfelis/wrangler,tdb/wrangler,prowessproject/wrangler,bsmr-erlang/wrangler,arcusfelis/wrangler