added support for bracket escaping, filtering in arrays and callbacks for runtime filter decisions