Parameter Type Checking for Filtering URI

Making sure parameters have the appropriate type. Still need a bit more
testing to handle alternative flows.