Fixed code style and some issues from scrutinizer
Constraint Mapper changes:
- Change ConstraintMapperInterface::resolve signature
- Added LogicException's when resolving a unsupported constraint
- Added Tests