Implement error handler function's context parameter

This also makes handler function consist with PHP by
removing the extra $backtrace parameter, PHP didn't have it
and we could call `debug_backtrace()` instead.