Throw an error when functions on `statics` clash due to duplicate keys
Throw if a reserved property is defined in 'statics'
Merge pull request #2036 from crm416/static-functions

Throw an error when functions on `statics` clash due to duplicate keys