Fix input valid checks for sets related functions
Fix input valid checks for sets related functions

munnybearz/arrayfire,munnybearz/arrayfire,9prady9/arrayfire,umar456/arrayfire,arrayfire/arrayfire,shehzan10/arrayfire,9prady9/arrayfire,shehzan10/arrayfire,shehzan10/arrayfire,shehzan10/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,munnybearz/arrayfire,arrayfire/arrayfire,umar456/arrayfire,umar456/arrayfire,9prady9/arrayfire,umar456/arrayfire