Aligned mock api with newest jenkinsapi
Handle bool and int params
 - convert to string
 - lowercase booleans