ErrorHandler and $context fixes

Fixes a minor issue with optional parameters not being optional and added support for `ContextErrorException` class as detailed here: https://github.com/fabpot/Silex/issues/717