fix Issue 13481 - bug with inferring attributes from built-in properties
Merge pull request #4001 from 9rnsr/fix13481

Issue 13481 - bug with inferring attributes from built-in properties