`build_filters`: reduce ObjectIds to strings, only return actual filters