fix issue 10617 - contract with -profile -debug is not nothrow
Merge pull request #2516 from hpohl/10617

[REG2.064a] fix issue 10617 - contract with -profile -debug is not nothrow
fix Issue 10953 - Attribute inheritance needs to apply to contracts, too
Merge pull request #2521 from 9rnsr/fix10953

Issue 10953 - Attribute inheritance needs to apply to contracts, too