avoid cyclic model items in filters

Passing in model items to a filter will no longer create a JSON error