fix(filter): Also perform circular reference check on functions; they can have properties