fix for supporting custom input types (eg address) 

if resource is not supplied, do not wrap the fields in request hash