Fix EZP-21912: Validate scalar type parameters in service methods

This PR resolves issue https://jira.ez.no/browse/EZP-21912

This implements type validation of scalar parameters for all API service methods.
Additionally PR contains some minor CS and phpdoc fixes.