added flexible filters object to custom_dump; added legacy pk list funct...

...ionality back

I like the flexibility provided by passing an object as a filter parameter, but I have some old scripts that use the primary keys as parameters, so I added that functionality back.

Also, custom_dump was not updated to work with objects and was still taking PKs.