Type-hinted, optimized event facility for PHP 5.3+