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