Add has_filter() and has_shared_field()

- Fixes #226