allow array params such as itemFilter

added test for array values

build_rest_payload shold allow array values in order to allow params
like 'itemFilter'

better naming for variables used in build_rest_payload