fix dict-empty?
  closes PR 14075
fix attr check for ~optional defaults
  closes PR 14076