typefindfunctions: Make XML typefinder more strict