fix(variables): Handle variables equally

- if a variable type is specified in request, then we try to cast the
  variable value to the assigned type. But only Integer, Long, Short,
  Double, String, Boolean and Date are supported.
- A BAD_REQUEST will be returned, if a unsupported type has been passed or
  the value could not be casted to the passed type.

related to CAM-918