Extend suppression of deprecation warnings to dictionary creation